efi: Add EFI_SECURE_BOOT bit
authorJosh Boyer <jwboyer@fedoraproject.org>
Wed, 5 Apr 2017 16:40:29 +0000 (17:40 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Nov 2017 21:04:10 +0000 (21:04 +0000)
commit1bf48162a4b26f8c6daf23a4d8c40e281de1bb11
tree8b80bd5252a8b3e268acf68e2c2426a6657a32e7
parent4561f2fd094ad7f1b6a663110e5d19f4ebd07f59
efi: Add EFI_SECURE_BOOT bit

UEFI machines can be booted in Secure Boot mode.  Add a EFI_SECURE_BOOT bit
that can be passed to efi_enabled() to find out whether secure boot is
enabled.

This will be used by the SysRq+x handler, registered by the x86 arch, to find
out whether secure boot mode is enabled so that it can be disabled.

Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0038-efi-Add-EFI_SECURE_BOOT-bit.patch
arch/x86/kernel/setup.c
include/linux/efi.h